import { DEFAULT_MEDIAS } from '../const-common'
const MEDIAS = {
  image: {type: 1, uploadTxt: "上传图片", tips: "最大1M（.jpg / .png / .gif）"},
  video: {type: 2, uploadTxt: "上传视频", tips: "最大15M（.mp4）"},
  audio: {type: 3, uploadTxt: "上传音频", tips: "最大5M（.mp3）"},
}

const PAGE_TYPE_ = {
  page: 1,
  pop: 2,
}

const ShareAttr = {
  allShare: {
    title: '我的作品',
    desc: '描述',
  },
  wxShare: {
    title: '',
    desc: '',
    key: '',
  },
  wbShare: {
    title: '',
    desc: '',
  },
  bIsWxChecked: false,
  bIsWbChecked: true,
  icon: DEFAULT_MEDIAS.icon,
};

const PRODUCT_TYPE = [
  { name: '无', value: 0 },
  { name: '大牌任务', value: 1 },
  { name: '3d转运签', value: 2 },
]

const ALIGN_TYPE = {
  top: 1,
  bottom: 2,
  left: 3,
  right: 4,
  horizontalCenterAlign: 5,
  horizontalCenterDistribute: 9,
  verticalCenterDistribute: 6,
  verticalCenterAlign: 8,
  singleCenter: 7,
}

const ALIGN_HORIZONTAL_TYPE = [
  ALIGN_TYPE.top,
  ALIGN_TYPE.bottom,
  ALIGN_TYPE.horizontalCenterAlign,
  ALIGN_TYPE.horizontalCenterDistribute,
]
const PREVIEW_WIDTH = 260

export {
  MEDIAS,
  PREVIEW_WIDTH,
  PAGE_TYPE_,
  ShareAttr,
  PRODUCT_TYPE,
  ALIGN_HORIZONTAL_TYPE,
  ALIGN_TYPE
}